﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopSku : BaseObject
    {
        //begin
        public TopSku(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _SkuId;
        [Size(SizeAttribute.Unlimited)]
        public string SkuId
        {
            get
            {
                return _SkuId;
            }
            set
            {
                SetPropertyValue("SkuId", ref _SkuId, value);
            }
        }
        private string _NumIid;
        [Size(SizeAttribute.Unlimited)]
        public string NumIid
        {
            get
            {
                return _NumIid;
            }
            set
            {
                SetPropertyValue("NumIid", ref _NumIid, value);
            }
        }
        private string _Properties;
        [Size(SizeAttribute.Unlimited)]
        public string Properties
        {
            get
            {
                return _Properties;
            }
            set
            {
                SetPropertyValue("Properties", ref _Properties, value);
            }
        }
        private long _Quantity;
        public long Quantity
        {
            get
            {
                return _Quantity;
            }
            set
            {
                SetPropertyValue("Quantity", ref _Quantity, value);
            }
        }
        private string _Price;
        [Size(SizeAttribute.Unlimited)]
        public string Price
        {
            get
            {
                return _Price;
            }
            set
            {
                SetPropertyValue("Price", ref _Price, value);
            }
        }
        private string _OuterId;
        [Size(SizeAttribute.Unlimited)]
        public string OuterId
        {
            get
            {
                return _OuterId;
            }
            set
            {
                SetPropertyValue("OuterId", ref _OuterId, value);
            }
        }
        private string _Created;
        [Size(SizeAttribute.Unlimited)]
        public string Created
        {
            get
            {
                return _Created;
            }
            set
            {
                SetPropertyValue("Created", ref _Created, value);
            }
        }
        private string _Modified;
        [Size(SizeAttribute.Unlimited)]
        public string Modified
        {
            get
            {
                return _Modified;
            }
            set
            {
                SetPropertyValue("Modified", ref _Modified, value);
            }
        }
        private string _Status;
        [Size(SizeAttribute.Unlimited)]
        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        private TopItem _Item;
        [Association("ItemSkus", typeof(TopItem))]
        public TopItem Item
        {
            get
            {
                return _Item;
            }
            set
            {
                SetPropertyValue("Item", ref _Item, value);
            }
        }
        //end

    }
}
